all:1.philosopher 2.philosopher 3.philosopher

1.philosopher:philosopher1.c
	gcc -o $@ $^ -lpthread
2.philosopher:philosopher2.c
	gcc -o $@ $^ -lpthread
3.philosopher:philosopher3.c
	gcc -o $@ $^ -lpthread

.PHONY:clean
clean:
	rm -f 1.philosopher 2.philosopher 3.philosopher
